<?php
/**
 
 *
 */
class MyWechatUtil
{
	/*
	//使用方法：
	$im=imagecreatefromjpeg("./20140416103023202.jpg");//参数是图片的存方路径
	$maxwidth="600";//设置图片的最大宽度
	$maxheight="400";//设置图片的最大高度
	$$savepath
	resizeImage($im,$maxwidth,$maxheight,$name,$filetype);//调用上面的函数
	*/
	public static function resizeImage($im,$maxwidth,$maxheight,$savepath)
	 {
		  $pic_width = imagesx($im);
		  $pic_height = imagesy($im);
		 
		  if(($maxwidth && $pic_width > $maxwidth) || ($maxheight && $pic_height > $maxheight))
		  {
		   if($maxwidth && $pic_width>$maxwidth)
		   {
			$widthratio = $maxwidth/$pic_width;
			$resizewidth_tag = true;
		   }
		 
		   if($maxheight && $pic_height>$maxheight)
		   {
			$heightratio = $maxheight/$pic_height;
			$resizeheight_tag = true;
		   }
		 
		   if($resizewidth_tag && $resizeheight_tag)
		   {
			if($widthratio<$heightratio)
			 $ratio = $widthratio;
			else
			 $ratio = $heightratio;
		   }
		 
		   if($resizewidth_tag && !$resizeheight_tag)
			$ratio = $widthratio;
		   if($resizeheight_tag && !$resizewidth_tag)
			$ratio = $heightratio;
		 
		   $newwidth = $pic_width * $ratio;
		   $newheight = $pic_height * $ratio;
		 
		   if(function_exists("imagecopyresampled"))
		   {
			   
			$newim = imagecreatetruecolor($newwidth,$newheight);//PHP系统函数
			  imagecopyresampled($newim,$im,0,0,0,0,$newwidth,$newheight,$pic_width,$pic_height);//PHP系统函数
		   }
		   else
		   {
			$newim = imagecreate($newwidth,$newheight);
			  imagecopyresized($newim,$im,0,0,0,0,$newwidth,$newheight,$pic_width,$pic_height);
		   }
		 
		   //var_dump($savepath);exit();
		   imagejpeg($newim,$savepath);
		   imagedestroy($newim);
		  }
		  else
		  { 
		   imagejpeg($im,$savepath);//var_dump($savepath);exit();
		  }
	}
	 
	 
	public static function GenQrV($backGroudJPG,$qrCodePath,$text,$savepath,$posttype=1,$wxheadPath)
	{
		
		switch($posttype)
		{
			case 1 :
				$x = 430;            
				$y = 760;  
				$left = 250;      //字体左边距
				$top = 760;       //字体顶边距
				$headerleft = 60;      //头像左边距
				$headertop = 710;       //头像顶边距
				$fontcolor_r = 255;
				$fontcolor_g = 0;
				$fontcolor_b = 0;
			break;
			case 2 :
				$x = 420;            
				$y = 770;  
				$left = 250;      //字体左边距
				$top = 770;       //字体顶边距
				$headerleft = 70;      //头像左边距
				$headertop = 710;       //头像顶边距
				$fontcolor_r = 255;
				$fontcolor_g = 0;
				$fontcolor_b = 0;
			break;
			case 3 :
				$x = 240;            
				$y = 450;  
				$left = 250;      //字体左边距
				$top = 760;       //字体顶边距
				$headerleft = 30;      //头像左边距
				$headertop = 780;       //头像顶边距
				$fontcolor_r = 255;
				$fontcolor_g = 255;
				$fontcolor_b = 255;
				break;
			case 4 :
				$x = 425;            
				$y = 765;  
				$left = 260;      //字体左边距
				$top = 765;       //字体顶边距
				$headerleft = 80;      //头像左边距
				$headertop = 710;       //头像顶边距
				$fontcolor_r = 255;
				$fontcolor_g = 255;
				$fontcolor_b = 255;
			break;
			case 5 :
				$x = 430;            
				$y = 760;  
				$left = 250;      //字体左边距
				$top = 760;       //字体顶边距
				$headerleft = 60;      //头像左边距
				$headertop = 710;       //头像顶边距
				$fontcolor_r = 255;
				$fontcolor_g = 0;
				$fontcolor_b = 0;
			break;
			default: 
				$x = 430;            
				$y = 760;  
				$left = 250;      //字体左边距
				$top = 760;       //字体顶边距
				$headerleft = 67;      //头像左边距
				$headertop = 667;       //头像顶边距
				$fontcolor_r = 255;
				$fontcolor_g = 0;
				$fontcolor_b = 0;
			break;
		}
		
		$QrImgTmpFilePath = 'data/upload/site/qrIMGTMP'.date('YmdHis'). substr(md5(time()), 0, 6).'.jpg';//tmp 
		 
		
		
	    $bigImg = imagecreatefromstring(file_get_contents($backGroudJPG)); 
		$im=imagecreatefromjpeg($qrCodePath);//参数是图片的存方路径
		
		$maxwidth="163";//设置图片的最大宽度
		$maxheight="163";//设置图片的最大高度 
		MyWechatUtil::resizeImage($im,$maxwidth,$maxheight, $QrImgTmpFilePath);//调用上面的函数
	 
	 
	    $qCodeImg = imagecreatefromstring(file_get_contents($QrImgTmpFilePath));
		$wxHeaderImg = imagecreatefromstring(file_get_contents($wxheadPath));
		//list($qCodeWidth, $qCodeHight, $qCodeType) = getimagesize($qCodePath);
		
		$qCodeWidth = 163;  
		$qCodeHight = 163; 
		// qrcode使用注解
		imagecopymerge($bigImg, $qCodeImg, $x, $y, 0, 0, $qCodeWidth, $qCodeHight, 100);
	 
		$wxHeaderWidth = 96;  
		$wxHeaderHight = 96; 
	    imagecopymerge($bigImg, $wxHeaderImg, $headerleft, $headertop, 0, 0, $wxHeaderWidth, $wxHeaderHight, 100);
		$font = $_SERVER['DOCUMENT_ROOT'] .'/'.'static/weixin/msyhl.ttc';//字体
		
		$black = imagecolorallocate($bigImg, $fontcolor_r, $fontcolor_g, $fontcolor_b);//字体颜色 RGB
	 
		$fontSize = 20;   //字体大小
		$circleSize = 0; //旋转角度
		
		
		
	 
		//$text = '爱淘客'; 
		@imagefttext($bigImg, $fontSize, $circleSize, $left, $top, $black, $font, $text);
	 
		list($bgWidth, $bgHight, $bgType) = getimagesize($backGroudJPG);
		
		switch ($bgType) {
			case 1: //gif
				header('Content-Type:image/gif');
				imagegif($bigImg,$savepath);
				break;
			case 2: //jpg
				header('Content-Type:image/jpg');
				imagejpeg($bigImg,$savepath);
				break;
			case 3: //jpg
				header('Content-Type:image/png');
				imagepng($bigImg,$savepath);
				break;
			default:
				break;
		}
		imagedestroy($bigImg); 
		imagedestroy($qcodeImg);	
		imagedestroy($wxHeaderImg);	
	} 
	public static  function emoji_encode($nickname){
        $strEncode = '';
        $length = mb_strlen($nickname,'utf-8');
        for ($i=0; $i < $length; $i++) {
            $_tmpStr = mb_substr($nickname,$i,1,'utf-8');
            if(strlen($_tmpStr) >= 4){
                $strEncode .= '[[EMOJI:'.rawurlencode($_tmpStr).']]';
            }else{
                $strEncode .= $_tmpStr;
            }
        }
        return $strEncode;
    }
	/* 
	*功能：php完美实现下载远程图片保存到本地 
	*参数：文件url,保存文件目录,保存文件名称，使用的下载方式 
	*当保存文件名称为空时则使用远程文件原来的名称 
	*/ 
	public static function getImage($url,$save_dir='',$filename='',$type=0){ 
		if(trim($url)==''){ 
			return array('file_name'=>'','save_path'=>'','error'=>1); 
		} 
		if(trim($save_dir)==''){ 
			$save_dir='./'; 
		} 
		if(trim($filename)==''){//保存文件名 
			$ext=strrchr($url,'.'); 
			if($ext!='.gif'&&$ext!='.jpg'){ 
				return array('file_name'=>'','save_path'=>'','error'=>3); 
			} 
			$filename=time().$ext; 
		} 
		if(0!==strrpos($save_dir,'/')){ 
			$save_dir.='/'; 
		} 
		//创建保存目录 
		if(!file_exists($save_dir)&&!mkdir($save_dir,0777,true)){ 
			return array('file_name'=>'','save_path'=>'','error'=>5); 
		} 
		//获取远程文件所采用的方法  
		if($type){ 
			$ch=curl_init(); 
			$timeout=5; 
			curl_setopt($ch,CURLOPT_URL,$url); 
			curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); 
			$img=curl_exec($ch); 
			curl_close($ch); 
		}else{ 
			ob_start();  
			readfile($url); 
			$img=ob_get_contents();  
			ob_end_clean();  
		} 
		//$size=strlen($img); 
		//文件大小  
		$fp2=@fopen($save_dir.$filename,'a'); 
		fwrite($fp2,$img); 
		fclose($fp2); 
		unset($img,$url); 
		return array('file_name'=>$filename,'save_path'=>$save_dir.$filename,'error'=>0); 
	}
	/**
     * @param $serverId jssdk文件上传返回的serverId
     * @return string 
     */
    public static function savePicToServer($remoteurl) {
         
        // 要存在你服务器哪个位置？
        $savePathFile = '/data/upload/site/qrcode_'.date('YmdHis').'.jpg';
        $targetName = $savePathFile;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
        $fp = fopen($targetName,'wb');
        curl_setopt($ch,CURLOPT_URL,$remoteurl);
        curl_setopt($ch,CURLOPT_FILE,$fp);
        curl_setopt($ch,CURLOPT_HEADER,0);
        curl_exec($ch);
        curl_close($ch);
        fclose($fp);

        return $savePathFile;
    }
	/**
     * @param $serverId jssdk文件上传返回的serverId
     * @return string 
     */
    public static function savePicToServerHeader($remoteurl,$id) {
         
        // 要存在你服务器哪个位置？
        $savePathFile = '/data/upload/site/wxheade_'.$id.'.jpg';
        $targetName = $savePathFile;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
        $fp = fopen($targetName,'wb');
        curl_setopt($ch,CURLOPT_URL,$remoteurl);
        curl_setopt($ch,CURLOPT_FILE,$fp);
        curl_setopt($ch,CURLOPT_HEADER,0);
        curl_exec($ch);
        curl_close($ch);
        fclose($fp);

        return $savePathFile;
    }
	 //时间比较函数，返回两个日期相差几秒、几分钟、几小时或几天
	public function DateDiff($date1, $date2, $unit = "") {
		switch ($unit) {
			case 's':
				$dividend = 1;
				break;
			case 'i':
				$dividend = 60; //oSPHP.COM.CN
				break;
			case 'h':
				$dividend = 3600;
				break;
			case 'd':
				$dividend = 86400;
				break; //开源OSPhP.COM.CN
			default:
				$dividend = 86400;
		}
		/*$time1 = strtotime($date1);
		$time2 = strtotime($date2);*/
		$time1 = $date1;
		$time2 = $date2 ;
		//if ($time1 && $time2)
			return (float)($time1 - $time2) / $dividend;
		//return false;
	} 
	/*获取自动回复中类型的对应 */
	public static function getAutoReply($type = 0) {
		$string = '文字';
		switch($type)
		{
			case 1:$string = '文字'; break;
			case 2:$string = '图片';  break;
			case 3:$string = '图文'; break;
		}
        return $string;
    }
	
	//替换微信消息的emoji为图片
    public static function replaceEmoji($string = '') {
		$emoji =  MyWechatUtil::get_emotions();
		$string =  str_replace('<img src="','',$string);
		$string =  str_replace('">','',$string);
        foreach ($emoji as $k => $v) {
             
			 //foreach ($v as $k2 => $v2) 
			 //{
				$string =  str_replace($v['gifurl'],'['.$v['title'].']',$string);
				 
			 //}
        } 
        return $string;
    }
	public static  function get_emotions(){
        return array(
            array('title' => '微笑'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/0.gif'),
            array('title' => '撇嘴'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/1.gif'),
            array('title' => '色'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/2.gif'),
            array('title' => '发呆'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/3.gif'),
            array('title' => '得意'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/4.gif'),
            array('title' => '流泪'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/5.gif'),
            array('title' => '害羞'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/6.gif'),
            array('title' => '闭嘴'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/7.gif'),
            array('title' => '睡'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/8.gif'),
            array('title' => '大哭'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/9.gif'),
            array('title' => '尴尬'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/10.gif'),
            array('title' => '发怒'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/11.gif'),
            array('title' => '调皮'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/12.gif'),
            array('title' => '呲牙'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/13.gif'),
            array('title' => '惊讶'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/14.gif'),
            array('title' => '难过'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/15.gif'),
            array('title' => '酷'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/16.gif'),
            array('title' => '冷汗'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/17.gif'),
            array('title' => '抓狂'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/18.gif'),
            array('title' => '吐'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/19.gif'),
            array('title' => '偷笑'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/20.gif'),
            array('title' => '可爱'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/21.gif'),
            array('title' => '白眼'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/22.gif'),
            array('title' => '傲慢'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/23.gif'),
            array('title' => '饥饿'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/24.gif'),
            array('title' => '困'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/25.gif'),
            array('title' => '惊恐'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/26.gif'),
            array('title' => '流汗'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/27.gif'),
            array('title' => '憨笑'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/28.gif'),
            array('title' => '大兵'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/29.gif'),
            array('title' => '奋斗'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/30.gif'),
            array('title' => '咒骂'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/31.gif'),
            array('title' => '疑问'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/32.gif'),
            array('title' => '嘘'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/33.gif'),
            array('title' => '晕'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/34.gif'),
            array('title' => '折磨'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/35.gif'),
            array('title' => '衰'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/36.gif'),
            array('title' => '骷髅'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/37.gif'),
            array('title' => '敲打'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/38.gif'),
            array('title' => '再见'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/39.gif'),
            array('title' => '擦汗'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/40.gif'),
            array('title' => '抠鼻'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/41.gif'),
            array('title' => '鼓掌'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/42.gif'),
            array('title' => '糗大了','gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/43.gif'),
            array('title' => '坏笑'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/44.gif'),
            array('title' => '左哼哼','gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/45.gif'),
            array('title' => '右哼哼','gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/46.gif'),
            array('title' => '哈欠'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/47.gif'),
            array('title' => '鄙视'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/48.gif'),
            array('title' => '委屈'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/49.gif'),
            array('title' => '快哭了','gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/50.gif'),
            array('title' => '阴险'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/51.gif'),
            array('title' => '亲亲'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/52.gif'),
            array('title' => '吓'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/53.gif'),
            array('title' => '可怜'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/54.gif'),
            array('title' => '菜刀'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/55.gif'),
            array('title' => '西瓜'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/56.gif'),
            array('title' => '啤酒'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/57.gif'),
            array('title' => '篮球'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/58.gif'),
            array('title' => '乒乓'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/59.gif'),
            array('title' => '咖啡'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/60.gif'),
            array('title' => '饭'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/61.gif'),
            array('title' => '猪头'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/62.gif'),
            array('title' => '玫瑰'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/63.gif'),
            array('title' => '凋谢'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/64.gif'),
            array('title' => '示爱'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/65.gif'),
            array('title' => '爱心'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/66.gif'),
            array('title' => '心碎'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/67.gif'),
            array('title' => '蛋糕'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/68.gif'),
            array('title' => '闪电'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/69.gif'),
            array('title' => '炸弹'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/70.gif'),
            array('title' => '刀'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/71.gif'),
            array('title' => '足球'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/72.gif'),
            array('title' => '瓢虫'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/73.gif'),
            array('title' => '便便'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/74.gif'),
            array('title' => '月亮'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/75.gif'),
            array('title' => '太阳'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/76.gif'),
            array('title' => '礼物'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/77.gif'),
            array('title' => '拥抱'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/78.gif'),
            array('title' => '强'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/79.gif'),
            array('title' => '弱'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/80.gif'),
            array('title' => '握手'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/81.gif'),
            array('title' => '胜利'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/82.gif'),
            array('title' => '抱拳'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/83.gif'),
            array('title' => '勾引'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/84.gif'),
            array('title' => '拳头'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/85.gif'),
            array('title' => '差劲'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/86.gif'),
            array('title' => '爱你'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/87.gif'),
            array('title' => 'NO'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/88.gif'),
            array('title' => 'OK'    ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/89.gif'),
            array('title' => '爱情'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/90.gif'),
            array('title' => '飞吻'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/91.gif'),
            array('title' => '跳跳'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/92.gif'),
            array('title' => '发抖'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/93.gif'),
            array('title' => '怄火'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/94.gif'),
            array('title' => '转圈'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/95.gif'),
            array('title' => '磕头'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/96.gif'),
            array('title' => '回头'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/97.gif'),
            array('title' => '跳绳'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/98.gif'),
            array('title' => '挥手'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/99.gif'),
            array('title' => '激动'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/100.gif'),
            array('title' => '街舞'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/101.gif'),
            array('title' => '献吻'  ,'gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/102.gif'),
            array('title' => '左太极','gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/103.gif'),
            array('title' => '右太极','gifurl' => 'https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/104.gif'),
        );
    }
}



